package com.itheima.d6_singleInstance;

public class Queue {
    private static Queue queue;
    private Queue(){
        System.out.println("创建对象");
    }
    public static Queue getQueue(){
        if(queue == null){
            queue = new Queue();
        }
        return queue;
    }
}
